package com.agou.app.admin.demo.easyui.bo;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import com.agou.app.admin.dbconfig.bean.TDemoEasyuiTree;
import com.agou.app.admin.demo.easyui.dao.IEasyuiDemoDao;
import com.agou.core.ss.SSException;
import com.agou.core.ss.SSTrace;
import com.agou.ssh.core.base.BOResultSet;

public class EasyuiDemoBo extends IEasyuiDemoBo{
	
	private static SSTrace ssTrace = SSTrace.getInstance(EasyuiDemoBo.class);

	private IEasyuiDemoDao easyuiDemoDao;

	public IEasyuiDemoDao getEasyuiDemoDao() {
		return easyuiDemoDao;
	}



	public void setEasyuiDemoDao(IEasyuiDemoDao easyuiDemoDao) {
		this.easyuiDemoDao = easyuiDemoDao;
	}



	public BOResultSet queryEasyuiTree() throws SSException, SQLException,
			IOException {
		ssTrace.debug("queryEasyuiTree", "开始执行 ");
		BOResultSet resultSet = new BOResultSet(this.getClass());
		this.getEasyuiDemoDao().setJdbcSession(this.getJdbcSession());// 设置数据库环境
		List<TDemoEasyuiTree> list = getEasyuiDemoDao().queryEasyuiTree();
		for(int i = 0 ; i < list.size() ; i++){
			resultSet.addDataList(list.get(i));
		}
		return resultSet;
	}

}
